
public class Test1 {
	public static void main(String[] args) {
		String s = "a/b,c.d a  as";
		System.out.println(s.indexOf("/"));
		System.out.println(s.replaceAll("/", "-"));
		System.out.println(s.replaceAll("\\.", ""));
		System.out.println(s.replaceAll("[,\\./ ]", ""));
	}
}
